package com.volvo.caretrack.mobile.model.machine;

public class SearchCondition {
	
	final static int DEFAULT_LIMIT = 10;
	
	private String type;
	private String model;
	private String chassisNo;
	private String customerId;
	private String dealerId;
	private Integer[] chassisRange;
	private int limit;	//returned results
	
	public SearchCondition() {
		this(DEFAULT_LIMIT);
	}
	
	public SearchCondition(int limit) {
		this.limit = limit;
	}

	public String getType() {
		return type;
	}

	public SearchCondition setType(String type) {
		this.type = type;
		return this;
	}

	public String getModel() {
		return model;
	}

	public SearchCondition setModel(String model) {
		this.model = model;
		return this;
	}

	public String getChassisNo() {
		return chassisNo;
	}

	public SearchCondition setChassisNo(String chassisNo) {
		this.chassisNo = chassisNo;
		return this;
	}

	public String getCustomerId() {
		return customerId;
	}

	public SearchCondition setCustomerId(String customerId) {
		this.customerId = customerId;
		return this;
	}

	public String getDealerId() {
		return dealerId;
	}

	public SearchCondition setDealerId(String dealerId) {
		this.dealerId = dealerId;
		return this;
	}

	public int getLimit() {
		return limit;
	}

	public SearchCondition setLimit(int limit) {
		this.limit = limit;
		return this;
	}

	public Integer[] getChassisRange() {
		return chassisRange;
	}

	public SearchCondition setChassisRange(Integer[] chassisRange) {
		this.chassisRange = chassisRange;
		return this;
	}

}
